import 'package:flutter/material.dart';

import 'sample_bloc_demo2_home_widget.dart';

class SampleBloCDemo2Home extends StatefulWidget {
  const SampleBloCDemo2Home({Key? key}) : super(key: key);

  @override
  _SampleBloCDemo2HomeState createState() => _SampleBloCDemo2HomeState();
}

class _SampleBloCDemo2HomeState extends State<SampleBloCDemo2Home> {
  var bloc = CounterBloC();

  @override
  void dispose() {
    super.dispose();
    bloc.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return CounterProvider2(
        bloC: bloc,
        child: Scaffold(
          appBar: AppBar(
            title: Text("BloC-2"),
          ),
          body: CounterTextWidgt2(),
          floatingActionButton: ActionBarWidget2(),
        ));
  }
}
